package org.personal.entity;

import java.util.LinkedList;
import java.util.List;

import org.myhibernate.id.NumberID;
/**
 * 
 * @author Administrator
 *
 */
public class Page 
{
	private int id=-1;
	private String pagePath="";
	private String title="";
	
	private int layout=-1;
	private List<String> users=new LinkedList<String>();
	private List<String> editUsers=new LinkedList<String>();
	private List<String> adminUsers=new LinkedList<String>();
	private List<String> portlets=new LinkedList<String>();
	
	public int getId() {
		if (id == -1)
		{
			id=NumberID.getId(Page.class).intValue();
		}
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPagePath() {
		return pagePath;
	}
	public void setPagePath(String pagePath) {
		this.pagePath = pagePath;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List<String> getUsers() {
		return users;
	}
	public void setUsers(List<String> users) {
		this.users = users;
	}
	public int getLayout() {
		return layout;
	}
	public void setLayout(int layout) {
		this.layout = layout;
	}
	public List<String> getPortlets() {
		return portlets;
	}
	public void setPortlets(List<String> portlets) {
		this.portlets = portlets;
	}
	public List<String> getEditUsers() {
		return editUsers;
	}
	public void setEditUsers(List<String> editUsers) {
		this.editUsers = editUsers;
	}
	public List<String> getAdminUsers() {
		return adminUsers;
	}
	public void setAdminUsers(List<String> adminUsers) {
		this.adminUsers = adminUsers;
	}
}
